package com.university.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.university.service.AdminService;
import com.university.vo.Admin;

@Controller
@RequestMapping()
public class adminController {

	@Resource
	private AdminService adminService;
	
	@RequestMapping("admin")
	public ModelAndView admin(){
		ModelAndView mav = new ModelAndView();
		
		List<Admin> admins = adminService.findAll();
		mav.addObject("admins", admins);
		
		return mav;
	}
	@RequestMapping("/student/studentLogin")
	public void login(){
		
		
	}
	
}
